import request from "./request"

const settingApi = {
    pageList : (data)=>{
        return request.post('/admin/common/setting/pageList',data)
    },

    del:(ids)=>{
        return request.post('/admin/common/setting/del',{
            ids
        })
    },
    // 新增
    add : (data)=>{
        return request.post('/admin/common/setting/add',data)
    },
    // 更新
    update : (data)=>{
        return request.post('/admin/common/setting/update',data)
    },

    // 刷新所有缓存
    refreshAll : ()=>{
        return request.post('/admin/common/setting/refreshAll')
    },
}

export default settingApi